package com.cskaoyan.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 楚夏三分
 * @datetime 2022/12/26 20:52
 * @description: TODO: 小组合作完成开发一个Controller
 */
@RestController
public class HelloController {

    @RequestMapping("helloSy/{username}")
    public String helloSy(@PathVariable("username") String username) {
        String result = "hello " + username;
        System.out.println(result);
        return result;
    }

    @RequestMapping("helloXzk/{username}")
    public String helloXzk(@PathVariable("username") String username) {
        String result = "hi" + username;
        System.out.println(result);
        return result;
    }

    @RequestMapping("helloZsy/{username}")
    public String helloZsy(@PathVariable("username") String username) {
        String result = "hi" + username;
        System.out.println(result);
        return result;
    }


    @RequestMapping("helloJ/{username}")
    public String helloJ(@PathVariable("username") String username) {
        String result = "hi" + username;
        System.out.println(result);
        return result;
    }
    @RequestMapping("helloDcj/{username}")
    public String helloDcj(@PathVariable("username") String username) {
        String result = "hi" + username;
        System.out.println(result);
        return result;
    }
}
